package unit2;

import java.util.Scanner;
public class Ex2_6_MaxNumberDemo {
    public static void main(String[] args) {
        int a, b, c, max;
        Scanner in = new Scanner(System.in);
        System.out.println("请输入三个整数：");
        a = in.nextInt();
        b = in.nextInt();
        c = in.nextInt();
        if (a > b) {
            max = a;
        } else {
            max = b;
        }
        if (max < c) {
            max = c;
        }
        System.out.println("最大数：" + max);
    }
}
